<template>
	<div>

	</div>
</template>

<script>
import aes from '@/utils/aes';
export default {
	data () {
		return {

		}
	},
	methods:{

	},
	mounted(){
		// 加密
		let obj = {
			id:1,
			name:"mincoo"
		};
		let result = aes.encrypt(JSON.stringify(obj)); 
		console.log(result);

		// 解密
		let finish = aes.decrypt(result);
		console.log(JSON.parse(finish));
	}
}
</script>

<style lang="scss" scoped>

</style>